nand as universal gate